package bancosys.tec.security.impl.services.buscar;

import jmine.tec.services.annotations.Execution;
import jmine.tec.services.annotations.Input;
import jmine.tec.services.annotations.Output;
import jmine.tec.services.annotations.ServiceImplementor;
import jmine.tec.services.api.ActionsEnum;
import bancosys.tec.security.impl.domain.ChineseWallCredential;

/**
 * Serviço para alterar o chinese wall credential
 * 
 * @author adalberto.kishi
 *
 */
@ServiceImplementor(action = ActionsEnum.BUSCAR)
public class ChineseWallCredentialService {

    public static final String IDENTIFICADOR = "Identificador";
    
    public static final String MNEMONICO = "Mnemônico";
    
    private ChineseWallCredential credential;

    /**
     * 
     * @param credential {@link ChineseWallCredential}
     */
    @Input(fieldName = MNEMONICO)
    public void setCredential(ChineseWallCredential credential) {
        this.credential = credential;
    }
    
    /**
     * Executa a criação do {@link ChineseWallCredential}
     * 
     * @return {@link ChineseWallCredential}
     */
    @Execution
    @Output(propertyName = IDENTIFICADOR)
    public ChineseWallCredential execute() {
        return credential;
    }

    
}
